<?php

App::uses('AppModel', 'Model');

class Settings extends AppModel {

    public $useTable = 'settings';
    
    public static $labels = array(
        'name' => 'Naziv firme',
        'address' => 'Adresa',
        'phone'   => 'Telefon',
        'mobile'  => 'Mobilni',
        'latlng'  => 'Geo koordinate',
        'email'   => 'e-Mail',
        
        'title'   	  => 'Naslov sajta',
        'keywords'    => 'Ključne reči',
        'description' => 'Kratak opis sajta'
    );
    
    public static function getLabel($key) {
        $label = @self::$labels[$key];
        if (empty($label)) {
            $label = Inflector::humanize($key);
        }
        
        return $label;
    }
}
